package org.streets.database;

import org.apache.tapestry5.ioc.MethodAdviceReceiver;

/**
 * 可以在一个事务中提交一部分事务然后继续启动下面的事务
 * @author dzb
 *
 */
public interface SQLTransactionAdvisor {
    /**
     * Identifies any methods with the {@link org.streets.database.annotations.CommitAfterInvoke} annotation and
     * applies the transaction logic to those methods.
     *
     * @param receiver advice receiver
     */
    void addCommitTransactionAdvice(MethodAdviceReceiver receiver);

}
